package ModelLayer;

/**
 * Write a description of class PartOrder here.
 * 
 * @author (dmab0913 Gruppe4) 
 * @version (a version number or a date)
 */
public class PartOrder
{
    private long orderNumber2;
    private String description2;
    private int quantity2;
    private int subTotal;

    /**
     * Constructor for objects of class PartOrder
     */
    public PartOrder(long orderNumber2, String description2, int quantity2, int subTotal)
    {
        // initialise instance variables
        this.orderNumber2 = orderNumber2;
        this.description2 = description2;
        this.quantity2 = quantity2;
        this.subTotal = subTotal;
    }

    /**
     * Return orderNumber
     */
    public long getOrderNumber2()
    {
        return orderNumber2;
    }

    /**
     * Return description
     */
    public String getDescription2()
    {
        return description2;
    }

    /**
     * Return quantity
     */
    public int getQuantity2()
    {
        return quantity2;
    }

    /**
     * Return subTotal
     */
    public int getSubTotal()
    {
        return subTotal;
    }

    /**
     * mutator method to set a orderNumber2
     */
    public void setOrderNumber2(long orderNumber2)
    {
        this.orderNumber2 = orderNumber2;
    }

    /**
     * mutator method to set a description2
     */
    public void setDescription2(String description2)
    {
        this.description2 = description2;
    }

    /**
     * mutator method to set quantity
     */
    public void setQuantity2(int quantity2)
    {
        this.quantity2 = quantity2;
    }

    /**
     * mutator method to set a status
     */
    public void setStatus(int subTotal)
    {
        this.subTotal = subTotal;
    }

    /**
     * mutator method to set all the fields of a partorder-object except for orderNumber2
     */
    public void updatePartOrder(long orderNumber2, String description2, int quantity2)
    {
        this.orderNumber2 = orderNumber2;
        this.description2 = description2;
        this.quantity2 = quantity2;
    }
}
